package org.suk.dp.factoryMethod.operation;

import org.suk.dp.simpleFactory.Operation;

/**
 * Description: 工厂方法客户端<br/>
 * @version V1.0  2017/6/20 16:45  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Client {
    public static void main(String[] args) {
        Factory factory = new AddFactory();
        Operation operation = factory.createOperation();
        operation.setNum2(2);
        operation.setNum2(4);
        System.out.println(operation.getResult());
    }
}
